<?php
	session_start();
	
	include 'connectDB.php';
	
	$strSQL = "INSERT INTO tbl_merchant(mer_id, mer_name, description,longtitude, latitude, date) VALUES ( ''
	, '".$_POST[txtMerName]."' , '".$_POST[txtDes]."', '".$_POST[txtLong]."', '".$_POST[txtLa]."',now()) ";
	
	$objQuery = mysql_query($strSQL);
	if($objQuery)
	{
		echo "Save Done.";
		echo '<meta HTTP-EQUIV="REFRESH" content="2; url=http://127.0.0.1/merchant/Merchant.php">';
	}
	else
	{
		echo "Error Save [".$strSQL."]";
		echo '<meta HTTP-EQUIV="REFRESH" content="2; url=http://127.0.0.1/merchant/addMerchant.php">';
	}
	
	
	mysql_close($objConnect);
	
	
?>